import Vue from 'vue'
import Router from 'vue-router'
import NotFoundComponent from './NotFoundComponent.vue'
import HomePage from './views/Home.vue'

Vue.use(Router);

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'home',
            component: HomePage
        },
        {
            path: '/hi',
            name: 'hi',
            component: () => import( './views/About.vue')
        },
        {
            path: '/user',
            name: 'user',
            component: () => import( './views/User.vue')
        },
        {
            path: '/password',
            name: 'password',
            component: () => import( './views/Password.vue')
        },
        {
            path: '/test',
            name: 'test',
            component: () => import( './views/Test.vue')
        },
        { path: '*', component: NotFoundComponent }
    ]
})
